package com.um.psystem.service.faultService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Auther: AiLen2E
 * @Date: 2021/12/21 11:00
 * @version: 1.0
 */
public interface IFaultService {

    Integer addDevice(Map map);

    Integer removeDevice(Integer id);

    Integer changeDevice(Map map);

    List<Map<String,Object>> getDeviceList(Map map);

    Integer addItem(Map map);

    Integer removeItem(Integer id);

    Integer changeItem(Map map);

    List<Map<String,Object>> getItemList(Map map);

    Integer addLine(Map map);

    Integer removeLine(Integer id);

    Integer changeLine(Map map);

    List<Map<String,Object>> getLineList(Map map);

    Integer addUnit(Integer fid, Integer type_dtl_id,Integer unitcount);

    Integer removeUnit (Integer id);

    Integer changeUnit(Integer id,Integer type_dtl_id,Integer unitcount);

    List<Map<String,Object>> getUnitList(Map map);

    Integer getItemListCount(Map map);

    Integer addUnitFromBat(List<Map<String,Object>> list);

    void exportExceptionFaultData(HttpServletResponse response, Map map);

    List<Map<String,Object>> getLineTypePieData(Map map);

    List<Map<String,Object>> getWorkShopPieData(Map map);

    List<Map<String,Object>> getUnitsPieData(Map map);

    List<Map<String,Object>> getFaultTypePieData(Map map);

    List<Map<String,Object>> getTypeDtlList(Map map);

}
